package com.business.service;

import java.util.List;
import org.apache.log4j.Logger;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.business.mapper.T_companyMapper;
import com.business.domain.T_company;

@Service("t_companyService")
@Transactional
public class T_companyService{
	private static Logger log = Logger.getLogger(T_companyService.class.getName());

	@Resource
    private T_companyMapper t_companyMapper;


	public int save(T_company obj){
		 return t_companyMapper.save(obj);
	}

	public int update(T_company obj){
		return t_companyMapper.update(obj);
	}

	public int delete(T_company obj){
		return t_companyMapper.delete(obj);
	}

	public T_company findById(T_company obj){
		return t_companyMapper.findById(obj);
	}

	public List findAll(T_company obj ){
		 return t_companyMapper.findAll(obj);
	}

	public int findCountAll(T_company obj ){
		 return t_companyMapper.findCountAll(obj);
	}
}
